package com.zez.controller;

import com.zez.common.util.RE;
import com.zez.service.IAuthorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zez
 * @since 2025-01-14
 */
@RestController
@RequestMapping("/author")
@CrossOrigin
public class AuthorController {
    @Autowired
    private IAuthorService authorService;
    @RequestMapping("/list")
    public RE list()
    {
        return RE.ok().data("items",authorService.list());
    }
}
